import request from '../utils/request'

export function loginWeb (username, password) {
  return request.post('system/user/login/web', {}, {
    params: {
      loginAcct: username,
      password: password
    }
  })
}

export function getEmailCode (emailInfo) {
  return request.get('system/user/emailCode', {
    params: {
      email: emailInfo
    }
  })
}

export function loginEmail (email, verification) {
  return request.post('system/user/login/mobile',
    {},
    {
      params: { code: verification, mobile: email }
    })
}
